cmake_minimum_required(VERSION 3.20.0)

file(GLOB SAMGR_SOURCE samgr/source/*.c)
file(GLOB SAMGR_ADAPTER samgr/adapter/*.c samgr/adapter/cmsis/*.c)
file(GLOB SAMGR_REGISTY samgr/registry/*.c)
file(GLOB SAMGR_BROADCAST communication/broadcast/source/*.c)


# file(GLOB SAMGR_CLIENT samgr_client/source/*.c)


zephyr_compile_definitions(SHARED_TASK_STACK_SIZE=1024)

zephyr_include_directories(
    samgr/source
    samgr/adapter
    samgr/registry
    interfaces/kits/samgr
    interfaces/kits/communication/broadcast
    communication/broadcast
)

zephyr_sources(
    ${SAMGR_SOURCE}
    ${SAMGR_ADAPTER}
    ${SAMGR_REGISTY}
    ${SAMGR_BROADCAST}
    # ${SAMGR_CLIENT}
)